package com.juzi.xunhuan_for;

public class ForDemo1 {
    public static void main(String[] args) {
        //目标：学会使用for循环，并理解他的执行范围
        //需求：输出3次hello world
        for (int i = 0; i < 3; i ++){
            System.out.println("第" + (i+1) +"次，Hello World");
        }
        for (int i = 0; i < 10 ; i++) {
            System.out.println("奇数为："+ (i += 1) );
        }
        for (int i = 0; i < 10; i+=2) {
            System.out.println("偶数为：" + i);

        }

    }
}
